﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PosHacker.Form
{
    public class FormSetCourse : POSForm
    {

        public FormSetCourse()//:base(this)
        {
            this.penId = "";
            this.testExecId = "";
            this.subjectCourseTestId = "";
            this.subjectCourseNm = "";
            this.pageNum = "";
            this.pageNumInt = "";
            this.reservationPriority = "";
        }
        public FormSetCourse(string strOnClick,string sheetnum)
        {
            //try
            //{
                string[] res = this.ParseOnClick(strOnClick, "setSheet(");

                this.subjectCourseTestId = res[0].Trim('\'').TrimStart('\'');
                this.subjectCourseNm = res[1].Trim('\'').TrimStart('\'');
                this.pageNum = res[2].Trim('\'').TrimStart('\'');
                this.pageNumInt = res[3].Trim('\'').TrimStart('\'');

            //}catch(Exception e){
            //    throw e;
            //}
            this.penId = "";
            this.testExecId = "";
            this.reservationPriority = "";

            this.SheetsNum = sheetnum;
        }

        public string penId { get; set; }
        public string testExecId { get; set; }
        public string subjectCourseTestId { get; set; }
        public string subjectCourseNm { get; set; }
        public string pageNum { get; set; }
        public string pageNumInt { get; set; }
        public string reservationPriority { get; set; }
        //Number of markable answer sheets
        public string SheetsNum { get; set; }


    }
}
